package com.zoweunion.mechanic.dao.base;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @author: skyxu
 * @date: 2019/2/11 0011 14:13
 * @Copyright: 2019 www.zoweunion.com Inc. All rights reserved.
 */
@Component
public interface EnclosureDao {
    int addEnclosure(Map<String, Object> reqMap);

    int addEnclosurePolygon(@Param("maps") List<Map<String, Object>> maps);

    int addEnclosureCar(@Param("maps") List<Map<String, Object>> maps);

    int addEnclosureNotifier(@Param("maps") List<Map<String, Object>> maps);

    List<String> getEnclosureIdListByCarId(@Param("carId") String carId);

    int getEnclosure(Map<String, Object> reqMap);

    List<Map<String, Object>> getEnclosureList(Map<String, Object> reqMap);

    Integer getEnclosureListCount(Map<String, Object> reqMap);

    int delEnclosureList(Map<String, Object> reqMap);

    int delEnclosureCar(Map<String, Object> reqMap);

    int delEnclosurePolygon(Map<String, Object> reqMap);

    int delEnclosureNotifier(Map<String, Object> reqMap);

    List<Map<String, Object>> getServerAllUser(Map<String, Object> reqMap);

    List<Map<String, Object>> getBankingServerAllUser(Map<String, Object> reqMap);

    Map<String, Object> getEnclosureById(Map<String, Object> reqMap);

    List<Map<String, Object>> getEnclosureCarByEId(Map<String, Object> reqMap);

    List<Map<String, Object>> getEnclosureNotifierByEId(Map<String, Object> reqMap);

    List<Map<String, Object>> getEnclosurePolygonByEId(Map<String, Object> reqMap);

    List<Map<String, Object>> getAllEnclosureCarByEId(@Param("maps") List<Map<String, Object>> maps);

    List<Map<String, Object>> getAllEnclosurePolygonByEId(@Param("maps") List<Map<String, Object>> maps);

    List<Map<String, Object>> getEnclosureAllCar();

    List<Map<String, Object>> getEnclosureByCid(Map<String, Object> reqMap);
}
